package de.gwtprime.client.event;

import java.util.List;

import com.google.gwt.event.shared.GwtEvent;

import de.gwtprime.client.event.handler.VotesAnswerCompleteLoadedEventHandler;
import de.gwtprime.shared.requestFactory.VoteAnswerCompletedProxy;

public class VotesAnswerCompleteLoadedEvent extends GwtEvent<VotesAnswerCompleteLoadedEventHandler>{

public static Type<VotesAnswerCompleteLoadedEventHandler> TYPE = new Type<VotesAnswerCompleteLoadedEventHandler>();
	
	private List<VoteAnswerCompletedProxy> votes;
	public VotesAnswerCompleteLoadedEvent(List<VoteAnswerCompletedProxy> votes2){
		this.setVotes(votes2);
	}
	
	@Override
	public Type<VotesAnswerCompleteLoadedEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(VotesAnswerCompleteLoadedEventHandler handler) {
		handler.onVotesLoaded(this);
	}

	public List<VoteAnswerCompletedProxy> getVotes() {
		return votes;
	}

	public void setVotes(List<VoteAnswerCompletedProxy> votes) {
		this.votes = votes;
	}


}
